package net.myspring.middle.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by liuj on 2016-07-20.
 */
@Controller
public class LoginController {

    @RequestMapping({"/", "index"})
    public String index() {
        return "sys/index";
    }

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "sys/login";
    }

    @RequestMapping(value = "/accessDenied", method = RequestMethod.GET)
    public String accessDenied() {
        return "sys/accessDenied";
    }
}
